package com.yy.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import java.awt.*;

/**
 * @author 鱼凫
 * @version 1.0
 * Create by 2021/12/5 22:38
 * @Description //TODO $
 * @Param $
 * @return $
 */

@EnableTransactionManagement
@Configuration
@MapperScan("com.yy.mapper")
public class MybatisConfig {
    @Bean

//    public PaginationInterceptor paginationInterceptor() {
//        return new PaginationInterceptor();
//    }

    public PaginationInnerInterceptor paginationInnerInterceptor(){
        return new PaginationInnerInterceptor();
    }
}
